📒 Notes for Lecture 16: Basic HTML Structure & Linking CSS
- Basic HTML Template: Har webpage ka structure hota hai jo browser ko content samajhne mein help karta hai.
- <!DOCTYPE html>: Yeh browser ko batata hai ki yeh document HTML5 hai.
- <html lang="en">: HTML document ka root element, language attribute important hota hai for accessibility.
- <head> section: Isme metadata, title, aur CSS files ka linking hota hai.
- <title> tag: Browser tab mein page ka naam dikhata hai.
- Linking CSS files: Sirf CSS files ko
<link rel="stylesheet" href="path/to/file.css">
se link karte hain. - Incorrect linking example: HTML file ko CSS file jaisa link karna galat hai
(jaise
index.html
ko stylesheet banana). - Body section: Webpage ka visible content yahan likhte hain.
Hinglish: Lecture 16 mein humne basic HTML structure dekha, jisme <!DOCTYPE>, <html>, <head> aur <body> hote hain. CSS linking sirf CSS files ke liye hota hai, isliye humne jo galat linking dekha — HTML file ko stylesheet banana — usko fix kiya. Yeh basic cheezein har webpage ke liye foundation hoti hain, bina inke page sahi se load nahi hoga.
💻 Live Code Preview
If the iframe doesn’t load, click here to open Lecture 16 Demo in a new tab.